package com.itdachang.design.structural.bridge;

/**
 * 抽象销售渠道
 * @author gcq
 * @Create 2022-02-10
 */
public abstract class AbstractSale {
    /**
     * 渠道价格
     */
    private Integer price;
    /**
     * 渠道类型
     */
    private String type;

    String getSaleInfo() {
        return "渠道：" + type + "==>" +  "价格：" + price;
    }
    public AbstractSale(String type, Integer price) {
        this.price = price;
        this.type = type;
    }
    /**
     * 写对应的方法
     * 电商渠道价格计算
     * 拼多多价格计算
     */
}